home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / earkit / socket / miami3 / miamisdk / netinclude / netinet / udp.h < prev   
C/C++ Source or Header  |  1998-05-24  |  346b  |  20 lines

  1. #ifndef _NETINET_UDP_H_
  2. #define _NETINET_UDP_H_
  3.  
  4. #ifndef _SYS_TYPES_H_
  5. #include <sys/types.h>
  6. #endif
  7.  
  8. /*
  9.  * Udp protocol header.
  10.  * Per RFC 768, September, 1981.
  11.  */
  12. struct udphdr {
  13.     u_short    uh_sport;        /* source port */
  14.     u_short    uh_dport;        /* destination port */
  15.     short    uh_ulen;        /* udp length */
  16.     u_short    uh_sum;            /* udp checksum */
  17. };
  18.  
  19. #endif
  20.